﻿@model IEnumerable<Gfw.Web.Models.Site.AnnouncementModel>

@{
    ViewBag.Title = "历史公告";
    Layout = null;
}

@using C.Mvc
@using MvcContrib.UI.Grid;


@using (Ajax.BeginForm("List", "Announcement", null, Gfw.Web.Common.ViewHelper.AjaxGet))
{
    @Html.Grid(Model).Columns(
        column =>
        {
            column.For(x => Html.ActionLink(x.AnnouncementTitle, "Detail", new { id = x.ID, isDefault = false })).Named("标题");
            column.For(x => x.AnnouncementDate).Named("发布时间");
            column.For(x => x.AnnouncementPublisher).Named("发布人");
        }
    ).Attributes(id => "mytable", cellpadding => "0", cellspacing => "0").Empty("没有相关信息");

    @Ajax.DataGridPager().Totals(ViewBag.TotalSize).PageIndex(ViewBag.PageIndex).PagePropertyName("page").AjaxOptions(Gfw.Web.Common.ViewHelper.AjaxGet);

}